package com.itheima;

public class Person {
    private String name;
    private Integer age;


    public void eat(){
        System.out.println("人类需要吃饭");
    }

    public void sleep(){
        System.out.println("人类需要睡觉");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Person() {
    }

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }
}
class Student extends  Person{
    public void study(){
        System.out.println("学生需要学习");
    }
    public void eat(){
        System.out.println("学生吃的是学生餐");
    }
}
class teach extends  Person{
    public void jiaoshu(){
        System.out.println("老师需要教书");
    }
    public void eat(){
        System.out.println("老师吃的是职工餐");
    }
}
class Test{
    public static void main(String[] args) {
        final String s="abcdefg";

    }
}